/*	kd:
	I learnt this from Xaser:
	
	https://forum.zdoom.org/viewtopic.php?f=122&t=55073&p=996637&hilit=print+bind#p996637
	
	Thanks Xaser! */

struct Gc_KeyName {
	static string ForCommand (String cmd) {
		// I wish this were unnecessary (and I tried to just return
		// NameKeys(GetKeysForCommand(cmd))
		// but it'll complain about insufficient arguments because the zs
		// compiler is a lulzy one.
		int key1;
		int key2;
		
		[key1, key2] = Bindings.GetKeysForCommand(cmd);
		
		return KeyBindings.NameKeys(key1, key2);
	}
}
